API: accessible: Add widget_set and widget_unset vfuncs
authorBenjamin Otte <otte@redhat.com>
Sun, 18 Dec 2011 11:55:41 +0000 (12:55 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2011 15:17:12 +0000 (16:17 +0100)
commitbac73e48db57f85e4f19ea5f9b3d9669db10686c
treee22cfdb99ee52e2cbaca9fc60d1977c1293851a0
parent50431be274dbc969fb03d6c4b1cbc62bffeacac7
API: accessible: Add widget_set and widget_unset vfuncs

I expect them to be used a lot, so this approach seems better than
requiring signals that connect to "notify::widget". Also, we can't use
regular functions (like dispose or constructed), becaiuse those assume
that (un)setting of the widget only happens once and with the current
design (a puble set_widget() function) we can't really guarantee that.

Also, I split them into two separate functions as one function is part
of construction and the other part of destruction of the object. And it
doesn't sound like a good idea to have that both be part of one
function.
gtk/gtkaccessible.c
gtk/gtkaccessible.h